import { createRouter, createWebHistory } from 'vue-router'
import UserProfile from '@/pages/user-profile.vue'
import VuexSimple from '@/pages/vuex-simple.vue'
import Login from '@/pages/Login.vue'

const routes = [
    {
        path: '/',
        name: 'Login',
        component: Login
    },
    {
        path: '/user/profile',
        name: 'UserProfile',
        component: UserProfile
    },
    {
        path: '/vuex-simple',
        name: 'VuexSimple',
        component: VuexSimple
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router